package com.open.capacity.task.service;

import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;
import com.open.capacity.task.model.TaskComment;

import java.util.Map;

public interface CommentService {

    PageResult<TaskComment> findComment(Map<String,Object> params);

    Result add(TaskComment taskComment);

    Result delete(String id);

    Result findUserById(String id);

    PageResult<TaskComment> findCommentById(Map<String, Object> params);

    Result findSubCommentById(Integer id);

    Result getLikeCountByCmtId(Integer id);

    Result giveLikeOrCancel(String userId, Integer cId);
}
